package com.cyy.vue.mapper;

import com.cyy.vue.entry.CloudTest;
import com.cyy.vue.entry.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {

    @Select("select * from cloud_test")
    @ResultType(CloudTest.class)
    List<CloudTest> findAll();

    @Select("select * from cyy_user where userName = #{userName} and password = #{password} ")
    @ResultType(User.class)
    List<User> login(@Param("userName") String userName,@Param("password") String password);
}
